<template>
  <section class="home-main">
    <div class="column">
      <div class="panel">
        <h2 class="title">柱状图-就业行业</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel">
        <h2 class="title">柱状图-就业行业</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel">
        <h2 class="title">柱状图-就业行业</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
    </div>
    <div class="column">
      <div class="no">
        <div class="no-header">
          <ul>
            <li>123456</li>
            <li>120000</li>
          </ul>
        </div>
        <div class="no-bottom">文字</div>
      </div>
    </div>
    <div class="column">
      <div class="panel">
        <h2 class="title">柱状图-就业行业</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel">
        <h2 class="title">柱状图-就业行业</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel">
        <h2 class="title">柱状图-就业行业</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
    </div>
  </section>
</template>

<script lang="ts" setup>
import * as echarts from "echarts" // 导入echarts
import Header from "./Header.vue" // 头部区域
import Main from "./Main.vue"
</script>

<style lang="less" scoped>
.home-main {
  display: flex;
  color: #fff;
  .mixins-positon() {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
  }
  .mixins-border-top() {
    top: 0;
    border-top: 2px solid @skyblue;
  }
  .mixins-border-bottom() {
    bottom: 0;
    border-bottom: 2px solid @skyblue;
  }
  .column {
    flex: 3;
    &:nth-child(2) {
      flex: 4;
      margin: 0px 15px;
    }
    .panel {
      position: relative;
      height: 175px;
      border: 1px solid rgba(25, 186, 139, 0.17);
      background: url("../assets/images/line.png") rgba(255, 255, 255, 0.03);
      margin-top: 10px;
      padding: 0 15px 40px;
      &:before {
        .mixins-positon;
        .mixins-border-top;
        left: 0;
        border-left: 2px solid @skyblue;
      }
      &:after {
        .mixins-positon;
        .mixins-border-top;
        right: 0;
        border-right: 2px solid @skyblue;
      }
      .title {
        height: 30px;
        line-height: 30px;
        text-align: center;
        color: #fff;
        font-size: 12px;
        font-weight: 400;
      }
      .chart {
        height: 130px;
        background-color: pink;
      }
      .panel-footer {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;

        &:before {
          .mixins-positon;
          .mixins-border-bottom;
          left: 0;
          border-left: 2px solid @skyblue;
        }
        &:after {
          .mixins-positon;
          .mixins-border-bottom;
          right: 0;
          border-right: 2px solid @skyblue;
        }
      }
    }
  }
  .no {
    background: rgba(101, 132, 226, 0.1);
    padding: 10px;

    .no-header {
      // border: 1px solid rgba(25, 186, 129, 17);
      border: 1px solid rgba(25, 186, 129, 0.17);
      position: relative;
      &:before {
        .mixins-positon;
        .mixins-border-top;
        left: 0;
        border-left: 2px solid @skyblue;
      }
      &:after {
        .mixins-positon;
        .mixins-border-bottom;
        right: 0;
        border-right: 2px solid @skyblue;
      }
      ul {
        display: flex;
        li {
          flex: 1;
          line-height: 60px;
          font-size: 30px;
          color: #ffeb7b;
          text-align: center;
          font-family: electronicFont;
        }
      }
    }
  }
}
</style>
